package com.aidl.app.ui.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;

import com.aidl.app.BookAidlInterface;

public class BookService extends Service {
    public BookService() {
    }

    private final BookAidlInterface.Stub bookAidl = new BookAidlInterface.Stub() {

        @Override
        public String getBook() throws RemoteException {
            return "书名：岳飞传\n价格：900元";
        }

        @Override
        public void addBook() throws RemoteException {

        }

        @Override
        public void updataBook() throws RemoteException {

        }

    };

    @Override
    public IBinder onBind(Intent intent) {
        return bookAidl;
    }
}
